package com.gmu.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @auther verb-calming
 * @date 2022/8/10 1:27
 */
@Data
@ExcelIgnoreUnannotated
@NoArgsConstructor
@AllArgsConstructor
public class TblSampleVo {
    @ExcelProperty(value = "姓名")
    private String name;

    @ExcelProperty(value = "活动名称")
    @ColumnWidth(20)
    private String activityName;

    @ExcelProperty(value = "单位名称")
    @ColumnWidth(20)
    private String unitsName;

    @ExcelProperty(value = "采样时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ColumnWidth(20)
    private Date sampleTime;

    @ExcelProperty(value = "检测时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ColumnWidth(20)
    private Date testTime;

    @ExcelProperty(value = "检测结果")
    private String sampleResult;

    @ExcelProperty(value = "检测状态")
    private String sta;

    private Integer status;

    private Integer unitsId;
}
